//
//  HSYBarButton.h
//  HSYCustomNavigationController
//
//  Created by key on 2017/2/9.
//  Copyright © 2017年 Scho.CustomNavigationController.Demo. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSUInteger, kHSYCustomBarButtonPropertyType) {
    
    kHSYCustomBarButtonPropertyTypeImage,
    kHSYCustomBarButtonPropertyTypeHightImage,
    kHSYCustomBarButtonPropertyTypeTitle,
    kHSYCustomBarButtonPropertyTypeFont,
    kHSYCustomBarButtonPropertyTypeTextColor,
    kHSYCustomBarButtonPropertyTypeHightTextColor,
    
};

@class HSYNavigationItem;
@interface HSYBarButton : UIButton

@property (nonatomic, assign) CGRect titleRect;
@property (nonatomic, assign) CGRect imageRect;

@property (nonatomic, strong) HSYNavigationItem *barItem;

@end

@interface HSYBarButton (Show)

+ (HSYBarButton *)showBarButtonByPropertyParams:(NSDictionary <NSNumber *, id>*)params navigationItem:(HSYNavigationItem *)item imageRect:(CGRect)imageRect titleRect:(CGRect)titleRect didClickCompleted:(void(^)(HSYBarButton *button))completed;

@end
